home *** CD-ROM | disk | FTP | other *** search
/ Corel Gallery (Macintosh) / Corel Gallery - Macintosh Version.bin / Corel GALLERY / Corel GALLERY.rsrc / CODE_46_MAMiniInit.txt < prev    next >
Text File  |  1994-04-29  |  52KB  |  930 lines

  1. # near model CODE resource
  2. # jump table entries: 20432-20434 (3 of them)
  3. export_2554:
  4. 00000000  4E56 0000                link       A6, 0
  5. 00000004  2F0C                     move.l     -[A7], A4
  6. 00000006  70FF                     moveq.l    D0, 0xFFFFFFFF
  7. 00000008  A055                     syscall    StripAddress
  8. 0000000A  2B40 F84C                move.l     [A5 - 0x7B4], D0
  9. 0000000E  486D F864                pea.l      [A5 - 0x79C]
  10. 00000012  4EBA 01C0                jsr        [PC + 0x1C0 /* 000001D4 */]
  11. 00000016  4A2D F88A                tst.b      [A5 - 0x776]
  12. 0000001A  664A                     bne        +0x4C /* 00000066 */
  13. 0000001C  486D FCD6                pea.l      [A5 - 0x32A]
  14. 00000020  A86E                     syscall    InitGraf
  15. 00000022  A8FE                     syscall    InitFonts
  16. 00000024  A912                     syscall    InitWindows
  17. 00000026  3F3C 7F7F                move.w     -[A7], 0x7F7F
  18. 0000002A  7000                     moveq.l    D0, 0x00
  19. 0000002C  3F00                     move.w     -[A7], D0
  20. 0000002E  201F                     move.l     D0, [A7]+
  21. 00000030  A032                     syscall    FlushEvents
  22. 00000032  70FF                     moveq.l    D0, 0xFFFFFFFF
  23. 00000034  31C0 0144                move.w     [0x00000144 /* SysEvtMask */], D0
  24. 00000038  A930                     syscall    InitMenus
  25. 0000003A  A9CC                     syscall    TEInit
  26. 0000003C  7000                     moveq.l    D0, 0x00
  27. 0000003E  2F00                     move.l     -[A7], D0
  28. 00000040  A97B                     syscall    InitDialogs
  29. 00000042  598F                     subq.l     A7, 4
  30. 00000044  7004                     moveq.l    D0, 0x04
  31. 00000046  3F00                     move.w     -[A7], D0
  32. 00000048  A9B9                     syscall    GetCursor
  33. 0000004A  285F                     movea.l    A4, [A7]+
  34. 0000004C  A850                     syscall    InitCursor
  35. 0000004E  200C                     move.l     D0, A4
  36. 00000050  6704                     beq        +0x6 /* 00000056 */
  37. 00000052  2F14                     move.l     -[A7], [A4]
  38. 00000054  A851                     syscall    SetCursor
  39. label00000056:
  40. 00000056  558F                     subq.l     A7, 2
  41. 00000058  A994                     syscall    CurResFile
  42. 0000005A  3B5F F88C                move.w     [A5 - 0x774], [A7]+
  43. 0000005E  1B7C 0001 F860           move.b     [A5 - 0x7A0], 0x1
  44. 00000064  6002                     bra        +0x4 /* 00000068 */
  45. label00000066:
  46. 00000066  A9F4                     syscall    ExitToShell
  47. label00000068:
  48. 00000068  286E FFFC                movea.l    A4, [A6 - 0x4]
  49. 0000006C  4E5E                     unlink     A6
  50. 0000006E  4E75                     rts
  51. export_2555:
  52. 00000070  4E56 0000                link       A6, 0
  53. 00000074  48E7 1108                movem.l    -[A7], D3,D7,A4
  54. 00000078  286E 0008                movea.l    A4, [A6 + 0x8]
  55. 0000007C  7E01                     moveq.l    D7, 0x01
  56. 0000007E  7600                     moveq.l    D3, 0x00
  57. 00000080  4A07                     tst.b      D7
  58. 00000082  6708                     beq        +0xA /* 0000008C */
  59. 00000084  4A2C 0012                tst.b      [A4 + 0x12]
  60. 00000088  6702                     beq        +0x4 /* 0000008C */
  61. 0000008A  7601                     moveq.l    D3, 0x01
  62. label0000008C:
  63. 0000008C  1E03                     move.b     D7, D3
  64. 0000008E  7600                     moveq.l    D3, 0x00
  65. 00000090  4A07                     tst.b      D7
  66. 00000092  6708                     beq        +0xA /* 0000009C */
  67. 00000094  4A2C 0015                tst.b      [A4 + 0x15]
  68. 00000098  6702                     beq        +0x4 /* 0000009C */
  69. 0000009A  7601                     moveq.l    D3, 0x01
  70. label0000009C:
  71. 0000009C  1E03                     move.b     D7, D3
  72. 0000009E  7600                     moveq.l    D3, 0x00
  73. 000000A0  4A07                     tst.b      D7
  74. 000000A2  6708                     beq        +0xA /* 000000AC */
  75. 000000A4  4A2C 0014                tst.b      [A4 + 0x14]
  76. 000000A8  6702                     beq        +0x4 /* 000000AC */
  77. 000000AA  7601                     moveq.l    D3, 0x01
  78. label000000AC:
  79. 000000AC  1E03                     move.b     D7, D3
  80. 000000AE  7600                     moveq.l    D3, 0x00
  81. 000000B0  4A07                     tst.b      D7
  82. 000000B2  6708                     beq        +0xA /* 000000BC */
  83. 000000B4  4A2C 0016                tst.b      [A4 + 0x16]
  84. 000000B8  6702                     beq        +0x4 /* 000000BC */
  85. 000000BA  7601                     moveq.l    D3, 0x01
  86. label000000BC:
  87. 000000BC  1E03                     move.b     D7, D3
  88. 000000BE  7600                     moveq.l    D3, 0x00
  89. 000000C0  4A07                     tst.b      D7
  90. 000000C2  6708                     beq        +0xA /* 000000CC */
  91. 000000C4  4A2C 0018                tst.b      [A4 + 0x18]
  92. 000000C8  6702                     beq        +0x4 /* 000000CC */
  93. 000000CA  7601                     moveq.l    D3, 0x01
  94. label000000CC:
  95. 000000CC  1E03                     move.b     D7, D3
  96. 000000CE  7600                     moveq.l    D3, 0x00
  97. 000000D0  4A07                     tst.b      D7
  98. 000000D2  670A                     beq        +0xC /* 000000DE */
  99. 000000D4  0C6C 0605 0004           cmpi.w     [A4 + 0x4], 0x605
  100. 000000DA  6D02                     blt        +0x4 /* 000000DE */
  101. 000000DC  7601                     moveq.l    D3, 0x01
  102. label000000DE:
  103. 000000DE  1E03                     move.b     D7, D3
  104. 000000E0  7600                     moveq.l    D3, 0x00
  105. 000000E2  4A07                     tst.b      D7
  106. 000000E4  6708                     beq        +0xA /* 000000EE */
  107. 000000E6  4A2C 0009                tst.b      [A4 + 0x9]
  108. 000000EA  6702                     beq        +0x4 /* 000000EE */
  109. 000000EC  7601                     moveq.l    D3, 0x01
  110. label000000EE:
  111. 000000EE  1E03                     move.b     D7, D3
  112. 000000F0  7600                     moveq.l    D3, 0x00
  113. 000000F2  4A07                     tst.b      D7
  114. 000000F4  6712                     beq        +0x14 /* 00000108 */
  115. 000000F6  7001                     moveq.l    D0, 0x01
  116. 000000F8  B06C 0006                cmp.w      D0, [A4 + 0x6]
  117. 000000FC  670A                     beq        +0xC /* 00000108 */
  118. 000000FE  7002                     moveq.l    D0, 0x02
  119. 00000100  B06C 0006                cmp.w      D0, [A4 + 0x6]
  120. 00000104  6702                     beq        +0x4 /* 00000108 */
  121. 00000106  7601                     moveq.l    D3, 0x01
  122. label00000108:
  123. 00000108  1E03                     move.b     D7, D3
  124. 0000010A  7600                     moveq.l    D3, 0x00
  125. 0000010C  4A07                     tst.b      D7
  126. 0000010E  670A                     beq        +0xC /* 0000011A */
  127. 00000110  0C6C 0700 0004           cmpi.w     [A4 + 0x4], 0x700
  128. 00000116  6D02                     blt        +0x4 /* 0000011A */
  129. 00000118  7601                     moveq.l    D3, 0x01
  130. label0000011A:
  131. 0000011A  1E03                     move.b     D7, D3
  132. 0000011C  7600                     moveq.l    D3, 0x00
  133. 0000011E  4A07                     tst.b      D7
  134. 00000120  6708                     beq        +0xA /* 0000012A */
  135. 00000122  4A2C 001E                tst.b      [A4 + 0x1E]
  136. 00000126  6702                     beq        +0x4 /* 0000012A */
  137. 00000128  7601                     moveq.l    D3, 0x01
  138. label0000012A:
  139. 0000012A  1E03                     move.b     D7, D3
  140. 0000012C  7600                     moveq.l    D3, 0x00
  141. 0000012E  4A07                     tst.b      D7
  142. 00000130  6708                     beq        +0xA /* 0000013A */
  143. 00000132  4A2C 001F                tst.b      [A4 + 0x1F]
  144. 00000136  6702                     beq        +0x4 /* 0000013A */
  145. 00000138  7601                     moveq.l    D3, 0x01
  146. label0000013A:
  147. 0000013A  1E03                     move.b     D7, D3
  148. 0000013C  7600                     moveq.l    D3, 0x00
  149. 0000013E  4A07                     tst.b      D7
  150. 00000140  6708                     beq        +0xA /* 0000014A */
  151. 00000142  4A2C 0020                tst.b      [A4 + 0x20]
  152. 00000146  6702                     beq        +0x4 /* 0000014A */
  153. 00000148  7601                     moveq.l    D3, 0x01
  154. label0000014A:
  155. 0000014A  1E03                     move.b     D7, D3
  156. 000